 sudo gitlab-ctl stop unicorn
sudo gitlab-ctl stop sidekiq

#$backup_name备份的名称，不包括gitlab-backup
sudo gitlab-rake gitlab:backup:restore BACKUP=$backup_name